package com.liuyao;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class liuyao_subs_0 {


public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 3;BA.debugLine="Private s60jz() As String";
liuyao._s60jz = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});__ref.setField("_s60jz",liuyao._s60jz);
 //BA.debugLineNum = 4;BA.debugLine="Private sTiangan() As String";
liuyao._stiangan = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});__ref.setField("_stiangan",liuyao._stiangan);
 //BA.debugLineNum = 5;BA.debugLine="Private sDizhi() As String";
liuyao._sdizhi = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});__ref.setField("_sdizhi",liuyao._sdizhi);
 //BA.debugLineNum = 6;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _date2gz(RemoteObject __ref,RemoteObject _date) throws Exception{
try {
		Debug.PushSubsStack("date2gz (liuyao) ","liuyao",1,__ref.getField(false, "ba"),__ref,15);
if (RapidSub.canDelegate("date2gz")) return __ref.runUserSub(false, "liuyao","date2gz", __ref, _date);
RemoteObject _n = RemoteObject.createImmutable(0);
RemoteObject _y = RemoteObject.createImmutable(0);
RemoteObject _r = RemoteObject.createImmutable(0);
RemoteObject _sn = RemoteObject.createImmutable("");
RemoteObject _sy = RemoteObject.createImmutable("");
RemoteObject _sr = RemoteObject.createImmutable("");
RemoteObject _ret = null;
Debug.locals.put("date", _date);
 BA.debugLineNum = 15;BA.debugLine="public Sub date2gz(date() As Int) As String()";
Debug.ShouldStop(16384);
 BA.debugLineNum = 16;BA.debugLine="Dim n,y,r As Int";
Debug.ShouldStop(32768);
_n = RemoteObject.createImmutable(0);Debug.locals.put("n", _n);
_y = RemoteObject.createImmutable(0);Debug.locals.put("y", _y);
_r = RemoteObject.createImmutable(0);Debug.locals.put("r", _r);
 BA.debugLineNum = 17;BA.debugLine="Dim sn,sy,sr As String";
Debug.ShouldStop(65536);
_sn = RemoteObject.createImmutable("");Debug.locals.put("sn", _sn);
_sy = RemoteObject.createImmutable("");Debug.locals.put("sy", _sy);
_sr = RemoteObject.createImmutable("");Debug.locals.put("sr", _sr);
 BA.debugLineNum = 18;BA.debugLine="Dim ret() As String";
Debug.ShouldStop(131072);
_ret = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});Debug.locals.put("ret", _ret);
 BA.debugLineNum = 19;BA.debugLine="n=date(0)";
Debug.ShouldStop(262144);
_n = _date.getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("n", _n);
 BA.debugLineNum = 20;BA.debugLine="n=n mod 60";
Debug.ShouldStop(524288);
_n = RemoteObject.solve(new RemoteObject[] {_n,RemoteObject.createImmutable(60)}, "%",0, 1);Debug.locals.put("n", _n);
 BA.debugLineNum = 21;BA.debugLine="If n<4 Then n=n+60";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("<",_n,BA.numberCast(double.class, 4))) { 
_n = RemoteObject.solve(new RemoteObject[] {_n,RemoteObject.createImmutable(60)}, "+",1, 1);Debug.locals.put("n", _n);};
 BA.debugLineNum = 22;BA.debugLine="n=n-4";
Debug.ShouldStop(2097152);
_n = RemoteObject.solve(new RemoteObject[] {_n,RemoteObject.createImmutable(4)}, "-",1, 1);Debug.locals.put("n", _n);
 BA.debugLineNum = 23;BA.debugLine="sn=getsGz(n)";
Debug.ShouldStop(4194304);
_sn = __ref.runClassMethod (com.liuyao.liuyao.class, "_getsgz",(Object)(_n));Debug.locals.put("sn", _sn);
 BA.debugLineNum = 24;BA.debugLine="Log(sn)";
Debug.ShouldStop(8388608);
liuyao.__c.runVoidMethod ("Log",(Object)(_sn));
 BA.debugLineNum = 25;BA.debugLine="ret=Array As String(sn)";
Debug.ShouldStop(16777216);
_ret = RemoteObject.createNewArray("String",new int[] {1},new Object[] {_sn});Debug.locals.put("ret", _ret);
 BA.debugLineNum = 26;BA.debugLine="Return ret";
Debug.ShouldStop(33554432);
if (true) return _ret;
 BA.debugLineNum = 27;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _getsgz(RemoteObject __ref,RemoteObject _idx) throws Exception{
try {
		Debug.PushSubsStack("getsGz (liuyao) ","liuyao",1,__ref.getField(false, "ba"),__ref,29);
if (RapidSub.canDelegate("getsgz")) return __ref.runUserSub(false, "liuyao","getsgz", __ref, _idx);
Debug.locals.put("idx", _idx);
 BA.debugLineNum = 29;BA.debugLine="public Sub getsGz(idx As Int) As String";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 30;BA.debugLine="If idx>-1 And idx<60 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",_idx,BA.numberCast(double.class, -(double) (0 + 1))) && RemoteObject.solveBoolean("<",_idx,BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 31;BA.debugLine="Return s60jz(idx)";
Debug.ShouldStop(1073741824);
if (true) return __ref.getField(false,"_s60jz").getArrayElement(true,_idx);
 }else {
 BA.debugLineNum = 33;BA.debugLine="Return \"ErrIdx\"";
Debug.ShouldStop(1);
if (true) return BA.ObjectToString("ErrIdx");
 };
 BA.debugLineNum = 36;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (liuyao) ","liuyao",1,__ref.getField(false, "ba"),__ref,9);
if (RapidSub.canDelegate("initialize")) return __ref.runUserSub(false, "liuyao","initialize", __ref, _ba);
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 9;BA.debugLine="Public Sub Initialize";
Debug.ShouldStop(256);
 BA.debugLineNum = 10;BA.debugLine="s60jz=Array As String(\"甲子\",\"乙丑\",\"丙寅\",\"丁卯\",\"戊辰\",\"己";
Debug.ShouldStop(512);
__ref.setField ("_s60jz",RemoteObject.createNewArray("String",new int[] {61},new Object[] {BA.ObjectToString("甲子"),BA.ObjectToString("乙丑"),BA.ObjectToString("丙寅"),BA.ObjectToString("丁卯"),BA.ObjectToString("戊辰"),BA.ObjectToString("己巳"),BA.ObjectToString("庚午"),BA.ObjectToString("辛未"),BA.ObjectToString("壬申"),BA.ObjectToString("癸酉"),BA.ObjectToString("甲戌"),BA.ObjectToString("乙亥"),BA.ObjectToString("丙子"),BA.ObjectToString("丁丑"),BA.ObjectToString("戊寅"),BA.ObjectToString("己卯"),BA.ObjectToString("庚辰"),BA.ObjectToString("辛巳"),BA.ObjectToString("壬午"),BA.ObjectToString("癸未"),BA.ObjectToString("甲申"),BA.ObjectToString("乙酉"),BA.ObjectToString("丙戌"),BA.ObjectToString("丁亥"),BA.ObjectToString("戊子"),BA.ObjectToString("己丑"),BA.ObjectToString("庚寅"),BA.ObjectToString("辛卯"),BA.ObjectToString("壬辰"),BA.ObjectToString("癸巳"),BA.ObjectToString("甲午"),BA.ObjectToString("乙未"),BA.ObjectToString("丙申"),BA.ObjectToString("丁酉"),BA.ObjectToString("戊戌"),BA.ObjectToString("己亥"),BA.ObjectToString("庚子"),BA.ObjectToString("辛丑"),BA.ObjectToString("壬寅"),BA.ObjectToString("癸卯"),BA.ObjectToString("甲辰"),BA.ObjectToString("乙巳"),BA.ObjectToString("丙午"),BA.ObjectToString("丁未"),BA.ObjectToString("戊申"),BA.ObjectToString("己酉"),BA.ObjectToString("庚戌"),BA.ObjectToString("辛亥"),BA.ObjectToString("壬子"),BA.ObjectToString("癸丑"),BA.ObjectToString("甲寅"),BA.ObjectToString("乙卯"),BA.ObjectToString("丙辰"),BA.ObjectToString("丁巳"),BA.ObjectToString("戊午"),BA.ObjectToString("己未"),BA.ObjectToString("庚申"),BA.ObjectToString("辛酉"),BA.ObjectToString("壬戌"),BA.ObjectToString("癸亥"),RemoteObject.createImmutable("癸亥")}));
 BA.debugLineNum = 11;BA.debugLine="sTiangan=Array As String(\"甲\", \"乙\", \"丙\", \"丁\", \"戊\",";
Debug.ShouldStop(1024);
__ref.setField ("_stiangan",RemoteObject.createNewArray("String",new int[] {10},new Object[] {BA.ObjectToString("甲"),BA.ObjectToString("乙"),BA.ObjectToString("丙"),BA.ObjectToString("丁"),BA.ObjectToString("戊"),BA.ObjectToString("己"),BA.ObjectToString("庚"),BA.ObjectToString("辛"),BA.ObjectToString("壬"),RemoteObject.createImmutable("癸")}));
 BA.debugLineNum = 12;BA.debugLine="sDizhi=Array As String(\"子\", \"丑\", \"寅\", \"卯\", \"辰\", \"";
Debug.ShouldStop(2048);
__ref.setField ("_sdizhi",RemoteObject.createNewArray("String",new int[] {12},new Object[] {BA.ObjectToString("子"),BA.ObjectToString("丑"),BA.ObjectToString("寅"),BA.ObjectToString("卯"),BA.ObjectToString("辰"),BA.ObjectToString("巳"),BA.ObjectToString("午"),BA.ObjectToString("未"),BA.ObjectToString("申"),BA.ObjectToString("酉"),BA.ObjectToString("戌"),RemoteObject.createImmutable("亥")}));
 BA.debugLineNum = 13;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}
}